import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/warehouse_device_tree_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/warehouse_device_tree_entity.g.dart';

@JsonSerializable()
class WarehouseDeviceTreeEntity {

	WarehouseDeviceTreeEntity();

	factory WarehouseDeviceTreeEntity.fromJson(Map<String, dynamic> json) => $WarehouseDeviceTreeEntityFromJson(json);
	List<WarehouseDeviceTreeEntity>? children;
	String? dictionaryId;
	String? dictionaryType;
	String? id;
	int? level;
	String? name;
	String? pid;

	Map<String, dynamic> toJson() => $WarehouseDeviceTreeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
